Skip to main content

bucket

Type​

keyword

Summary​

Designates the paint tool used to fill an area in an image.

Syntax​

bucket

Description​

Use the bucket keyword to fill a shape, or the entire image, with the brushColor.

When using the Bucket tool, the cursor is a paintbucket shape (over stack windows) or an arrow (anywhere else). This tool is used to fill shapes with a color. The clicked pixel, and all connected pixels of the same color, are changed to the brushColor (or brushPattern).

If you try to paint with the bucket on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.

Examples​

choose bucket tool

keyword: image

property: brushPattern, brushColor

command: choose

glossary: keyword, paint tool

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?